package com.example.registration.service;

import com.example.registration.exception.DataBaseSqlException;

import java.util.Map;

/**
 * 登录
 *
 * @program: registration
 * @Description: $
 * @Param: $
 * @return: $
 * @Author: xieyongde
 * @Date: 2019-08-19
 */

public interface LoginService {
    //登录
    public Map login(String name, String userPassword) throws DataBaseSqlException, Exception;

    //根据id查询管理员信息
    public Map showAdmin(Integer id) throws DataBaseSqlException, Exception;

    // 修改密码
    public Map updatepPassword(String newpassword, String oldpassword, String confirmpasswordint, Integer id) throws DataBaseSqlException, Exception;

}
